import Vue from 'vue';
import Router from 'vue-router';

import Home from '@/components/common/Home.vue';
import Login from '@/components/common/Login.vue';
import debug403 from '@/components/common/403.vue';
import debug404 from '@/components/common/404.vue';
import Test from '@/components/page/test.vue';
// import Test from '@/components/page/operationManage/components/IdentitionImg.vue';

//系统管理
import menu from '@/components/page/systemManage/menu/index.vue';
import user from '@/components/page/systemManage/user/index.vue';
import roles from '@/components/page/systemManage/roles/index.vue';
import company from '@/components/page/systemManage/company/index.vue';
import code from '@/components/page/systemManage/code/index.vue';


/*
* 营运管理
* */
import newPulpFilling from '@/components/page/operationManage/newPulpFiling.vue';
import register from '@/components/page/operationManage/register.vue';
import pulpTest from '@/components/page/operationManage/pulpTest.vue';
import sample from '@/components/page/operationManage/sample.vue';
import distribution from '@/components/page/operationManage/distribution.vue';
import untreated from '@/components/page/operationManage/untreated.vue';
import pulpCollect from '@/components/page/operationManage/pulpCollect.vue';
import cost1 from '@/components/page/operationManage/cost1.vue';
import cost2 from '@/components/page/operationManage/cost2.vue';
import heatSeal from '@/components/page/operationManage/heatSeal.vue'

Vue.use(Router);
export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/login'
        },
        {
            path: '/',
            component: Home,
            meta: {title: '自述文件'},
            children: [
                {meta: {title: '系统首页'}, path: '/dashboard', component: Test},
                //系统管理
                {meta: {title: '菜单管理'}, path: '/adscm/system/menu', component: menu},
                {meta: {title: '用户管理'}, path: '/adscm/system/user', component: user},
                {meta: {title: '角色管理'}, path: '/adscm/system/role', component: roles},
                {meta: {title: '部门管理'}, path: '/adscm/system/dept', component: company},
                {meta: {title: '日志管理'}, path: '/adscm/system/log', component: debug404},
                {meta: {title: '码表管理'}, path: '/adscm/system/code', component: code},


                /*
                * 营运管理
                * */
                //新浆员建档
                {meta: {title: '建档记录'}, path: '/jz/application/providerInfo', component: newPulpFilling},
                {meta: {title: '登记记录'}, path: '/jz/application/providerReg', component: register},
                {meta: {title: '体检记录'}, path: '/adscm/application/bodyCheck', component: pulpTest},
                {meta: {title: '检验记录'}, path: '/jz/application/sample', component: sample},
                {meta: {title: '分配记录'}, path: '/adscm/application/providerAllot', component: distribution},
                {meta: {title: '未处理采浆记录'}, path: '/adscm/application/providerCollection', component: untreated},
                {meta: {title: '采浆记录'}, path: '/adscm/application/providerCollection/59', component: pulpCollect},
                {meta: {title: '未处理发放记录'}, path: '/adscm/application/providerCost/63', component: cost1},
                {meta: {title: '费用记录'}, path: "/adscm/application/providerCost/65", component: cost2},
                {meta: {title: '热和记录'}, path: '/adscm/application/heatSeal', component: heatSeal}

            ]
        },
        {
            path: '/login',
            component: Login
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
})
